﻿{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">年级课程表 - {%$grade_data.grade_name%}</p>
                </div>
                    <div class="box-body">
					   <form name="myform" method="get" action="">
                       <div class="col-md-3 form-group">
                              <label for="inputPassword3" class="col-sm-5 control-label" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
                                   年级名称：
                              </label>
                              <div class="input-group col-md-7 col-xs-7">
                                  <select class="form-control" name="grade_id">
                                 <option value="0"> 请选择</option>
								  {%foreach from=$grade_lists key=key item=value%}
										<option value="{%$value.grade_id%}"  {%if $grade_id==$value.grade_id%}selected{%/if%}> {%$value.grade_name%}</option>	
								  {%/foreach%}
								    </select> 
                              </div> 
                        </div>
                        <div class="col-md-1 col-xs-2">
						   <input type="hidden" name="a" value="syllabus.gradelist">
                           <button type="submit" class="btn btn-primary">确 定</button>
                        </div>
						</form>
                        <div style="width:100%; overflow-x:scroll" >
                             <table class="table-bordered table-condensed" id="mytable" style="width:100%">					 
								  <tr>
                                         <td> </td>
										 {%foreach from=$week_lists key=key item=value%}
                                         <td colspan="{%$set_data.set_apm%}">{%$value%}</td>
										 {%/foreach%}
								  </tr>
								  <tr>
                                         <td> </td>
										 {%foreach from=$set_data.set_week key=key item=value%}
											{%foreach from=$section_lists key=k item=v%}
                                         <td>{%$v%}</td>
											{%/foreach%}
										 {%/foreach%}
								 </tr>	
								 {%foreach from=$syllabus key=key item=value%}
                                  <tr>
                                         <td>{%$key%}</td>
								  {%foreach from=$value key=k item=v%}
									{%foreach from=$v key=s item=t%}
										 <td>{%$t%}</td>
									{%/foreach%}
									
								  {%/foreach%}
								  </tr>
								 {%/foreach%}						
                         </table>  
                       </div>
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 {%include file="index.footer.tpl.php"%}
